package com.glowdayz.model;

import java.util.ArrayList;

import com.glowdayz.common.HttpHandler.FileInfo;

/** 제품의 정보를 표현하는 Model 클래스 */
public class ProductCMD {
	
	private int idProduct;
	private int idBrand;
	private String idBrandValue;
	private String productTitle;
	private String volume;
	private int price;
	private String productText;
	private String promotionText;
	private String colorType;
	private String keyWord;
	private int readCount;
	private int productScore;
	private Double ratingAvg;
	private int rationCount;
	private int isDisplay;
	private String create_date;
	private String modified_date;
	private int wishCount;
	private int pouchCount;
	private int commentCount;
	private String brandImage;
	private String image;
	private ArrayList<FileInfo> imageList;
	private ArrayList<ProductCategoryCMD> cateList;
	private int rating1;
	private int rating2;
	private int rating3;
	private int rating4;
	private int rating5;
	
	public ProductCMD() {
	}
	
	/** 화제/에디터 제품 xml */
	public ProductCMD(int idProduct, String idBrandValue,
			String productTitle, String volume, int price, String promotionText,
			Double ratingAvg, int rationCount, String image) {
		super();
		this.idProduct = idProduct;
		this.idBrandValue = idBrandValue;
		this.productTitle = productTitle;
		this.volume = volume;
		this.price = price;
		this.promotionText = promotionText;
		this.ratingAvg = ratingAvg;
		this.rationCount = rationCount;
		this.image = image;
	}
	
	/** 카테고리 제품 리스트 xml */
	public ProductCMD(int idProduct, int idBrand, String idBrandValue,
			String productTitle, String volume, int price,
			Double ratingAvg, int rationCount,
			String image, String create_date) {
		super();
		this.idProduct = idProduct;
		this.idBrand = idBrand;
		this.idBrandValue = idBrandValue;
		this.productTitle = productTitle;
		this.volume = volume;
		this.price = price;
		this.ratingAvg = ratingAvg;
		this.rationCount = rationCount;
		this.image = image;
		this.create_date = create_date;
	}
	
	/** 검색 제품 리스트 xml */
	public ProductCMD(int idProduct, int idBrand, String productTitle, 
			String volume, int price, String image, String create_date) {
		super();
		this.idProduct = idProduct;
		this.idBrand = idBrand;
		this.productTitle = productTitle;
		this.volume = volume;
		this.price = price;
		this.image = image;
		this.create_date = create_date;
	}
	
	/** 파우치 제품 리스트 xml */
	public ProductCMD(int idProduct, String idBrandValue,
			String productTitle, String volume, int price, String productText,
			String image) {
		super();
		this.idProduct = idProduct;
		this.idBrandValue = idBrandValue;
		this.productTitle = productTitle;
		this.volume = volume;
		this.price = price;
		this.productText = productText;
		this.image = image;
	}
	
	/** 제품 조회 xml */
	public ProductCMD(int idProduct, int idBrand, String idBrandValue,
			String productTitle, String volume, int price, String productText,
			String colorType, String keyWord, Double ratingAvg, int rationCount,
			String brandImage, String image, int rating1, int rating2,
			int rating3, int rating4, int rating5) {
		super();
		this.idProduct = idProduct;
		this.idBrand = idBrand;
		this.idBrandValue = idBrandValue;
		this.productTitle = productTitle;
		this.volume = volume;
		this.price = price;
		this.productText = productText;
		this.colorType = colorType;
		this.keyWord = keyWord;
		this.ratingAvg = ratingAvg;
		this.rationCount = rationCount;
		this.brandImage = brandImage;
		this.image = image;
		this.rating1 = rating1;
		this.rating2 = rating2;
		this.rating3 = rating3;
		this.rating4 = rating4;
		this.rating5 = rating5;
	}
	
	/** 제품 이미지 xml */
	public ProductCMD(int idProduct, String image) {
		super();
		this.idProduct = idProduct;
		this.image = image;
	}

	public int getIdProduct() {
		return idProduct;
	}

	public void setIdProduct(int idProduct) {
		this.idProduct = idProduct;
	}

	public int getIdBrand() {
		return idBrand;
	}

	public void setIdBrand(int idBrand) {
		this.idBrand = idBrand;
	}

	public String getIdBrandValue() {
		return idBrandValue;
	}

	public void setIdBrandValue(String idBrandValue) {
		this.idBrandValue = idBrandValue;
	}

	public String getProductTitle() {
		return productTitle;
	}

	public void setProductTitle(String productTitle) {
		this.productTitle = productTitle;
	}

	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getProductText() {
		return productText;
	}

	public void setProductText(String productText) {
		this.productText = productText;
	}

	public String getPromotionText() {
		return promotionText;
	}

	public void setPromotionText(String promotionText) {
		this.promotionText = promotionText;
	}

	public String getColorType() {
		return colorType;
	}

	public void setColorType(String colorType) {
		this.colorType = colorType;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public int getReadCount() {
		return readCount;
	}

	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}

	public int getProductScore() {
		return productScore;
	}

	public void setProductScore(int productScore) {
		this.productScore = productScore;
	}

	public Double getRatingAvg() {
		return ratingAvg;
	}

	public void setRatingAvg(Double ratingAvg) {
		this.ratingAvg = ratingAvg;
	}

	public int getRationCount() {
		return rationCount;
	}

	public void setRationCount(int rationCount) {
		this.rationCount = rationCount;
	}

	public int getIsDisplay() {
		return isDisplay;
	}

	public void setIsDisplay(int isDisplay) {
		this.isDisplay = isDisplay;
	}

	public String getCreate_date() {
		return create_date;
	}

	public void setCreate_date(String create_date) {
		this.create_date = create_date;
	}

	public String getModified_date() {
		return modified_date;
	}

	public void setModified_date(String modified_date) {
		this.modified_date = modified_date;
	}

	public int getWishCount() {
		return wishCount;
	}

	public void setWishCount(int wishCount) {
		this.wishCount = wishCount;
	}

	public int getPouchCount() {
		return pouchCount;
	}

	public void setPouchCount(int pouchCount) {
		this.pouchCount = pouchCount;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public String getBrandImage() {
		return brandImage;
	}

	public void setBrandImage(String brandImage) {
		this.brandImage = brandImage;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public ArrayList<FileInfo> getImageList() {
		return imageList;
	}

	public void setImageList(ArrayList<FileInfo> imageList) {
		this.imageList = imageList;
	}

	public ArrayList<ProductCategoryCMD> getCateList() {
		return cateList;
	}

	public void setCateList(ArrayList<ProductCategoryCMD> cateList) {
		this.cateList = cateList;
	}

	public int getRating1() {
		return rating1;
	}

	public void setRating1(int rating1) {
		this.rating1 = rating1;
	}

	public int getRating2() {
		return rating2;
	}

	public void setRating2(int rating2) {
		this.rating2 = rating2;
	}

	public int getRating3() {
		return rating3;
	}

	public void setRating3(int rating3) {
		this.rating3 = rating3;
	}

	public int getRating4() {
		return rating4;
	}

	public void setRating4(int rating4) {
		this.rating4 = rating4;
	}

	public int getRating5() {
		return rating5;
	}

	public void setRating5(int rating5) {
		this.rating5 = rating5;
	}

	@Override
	public String toString() {
		return "ProductCMD [idProduct=" + idProduct + ", idBrand=" + idBrand
				+ ", idBrandValue=" + idBrandValue + ", productTitle="
				+ productTitle + ", volume=" + volume + ", price=" + price
				+ ", productText=" + productText + ", promotionText="
				+ promotionText + ", colorType=" + colorType + ", keyWord="
				+ keyWord + ", readCount=" + readCount + ", productScore="
				+ productScore + ", ratingAvg=" + ratingAvg + ", rationCount="
				+ rationCount + ", isDisplay=" + isDisplay + ", create_date="
				+ create_date + ", modified_date=" + modified_date
				+ ", wishCount=" + wishCount + ", pouchCount=" + pouchCount
				+ ", commentCount=" + commentCount + ", brandImage="
				+ brandImage + ", image=" + image + ", imageList=" + imageList
				+ ", cateList=" + cateList + ", rating1=" + rating1
				+ ", rating2=" + rating2 + ", rating3=" + rating3
				+ ", rating4=" + rating4 + ", rating5=" + rating5 + "]";
	}

}
